package org.jeecg.modules.thresholdPlan.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.thresholdPlan.entity.ThresholdPlan;
import org.jeecg.modules.thresholdPlan.entity.ThresholdPlanDetail;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: 温度阈值方案
 * @Author: jeecg-boot
 * @Date:   2023-11-22
 * @Version: V1.0
 */
public interface IThresholdPlanService extends IService<ThresholdPlan> {

	void updateEnable(ThresholdPlan thresholdPlan);

	List<ThresholdPlanDetail> getEnableThreshold();

	/**
	 * 添加一对多
	 * 
	 */
	public void saveMain(ThresholdPlan thresholdPlan,List<ThresholdPlanDetail> thresholdPlanDetailList) ;
	
	/**
	 * 修改一对多
	 * 
	 */
	public void updateMain(ThresholdPlan thresholdPlan,List<ThresholdPlanDetail> thresholdPlanDetailList);
	
	/**
	 * 删除一对多
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);
	
}
